package com.example.domain;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import com.bw.itext.pdf.annotation.PdfValue;
import lombok.Data;

/**
 * 
 * @author 11259
 * @TableName t_order
 */
@TableName(value ="t_order")
@Data
public class Order implements Serializable {
    /**
     * 
     */
    @ExcelProperty("编号")
    @ColumnWidth(20)
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 
     */
    @ExcelProperty("订单名称")
    @ColumnWidth(20)
    @PdfValue(colName = "订单名称")
    private String name;

    /**
     * 
     */
    @ExcelProperty("用户名称")
    @ColumnWidth(20)
    @PdfValue(colName = "用户名称")
    private String uname;

    /**
     * 
     */
    @ExcelProperty("订单价格")
    @ColumnWidth(20)
    @PdfValue(colName = "订单价格")
    private BigDecimal price;

    /**
     * 
     */
    @ExcelProperty("创建时间")
    @ColumnWidth(20)
    @PdfValue(colName = "创建时间")
    private Date created;

    /**
     * 
     */
    @ExcelIgnore
    private Integer state;
    @ExcelIgnore
    @TableField(exist = false)
    private Integer pid;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}